package com.ly.system.controller;

import com.ass.llm.dto.ModelOut;
import com.common.core.domain.AjaxResult;
import com.common.core.web.controller.BaseController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;



@RestController
@RequestMapping("/llmModel")
public class LLMModelController extends BaseController {

    @GetMapping("/getModel")
    public AjaxResult getModel(){
        List<ModelOut> list = ModelOut.getModelList();
        return AjaxResult.success(list);
    }

    @GetMapping("/getModelByModelName/{modelName}")
    public AjaxResult getModelByModelName(@PathVariable String modelName){
        ModelOut model = ModelOut.getModelByName(modelName);
        return AjaxResult.success(model);
    }


}
